package com.campus.backend.bean.merchant;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 商户更新参数Bean
 *
 * @author ZhaoYuJie
 * @since 2025-01-15
 */
@Data
@ApiModel(value = "MerchantUpdateBean", description = "商户更新参数")
public class MerchantUpdateBean {

    @ApiModelProperty(value = "商户ID", required = true)
    @NotNull(message = "商户ID不能为空")
    private Integer id;

    @ApiModelProperty("商户名称")
    private String name;

    @ApiModelProperty("联系电话")
    private String phone;

    @ApiModelProperty("商户地址")
    private String address;

    @ApiModelProperty("备餐时长（分钟）")
    private Integer baseTime;

    @ApiModelProperty("起送价")
    private BigDecimal minPrice;

    @ApiModelProperty("配送费")
    private BigDecimal deliveryFee;

    @ApiModelProperty("商户描述")
    private String description;

    @ApiModelProperty("是否支持外卖配送：1-支持，0-不支持")
    private Integer supportDelivery;

    @ApiModelProperty("是否支持堂食：1-支持，0-不支持")
    private Integer supportDineIn;

    @ApiModelProperty("是否支持自取：1-支持，0-不支持")
    private Integer supportTakeout;

    @ApiModelProperty("状态：1-营业中，0-休息中")
    private Integer status;
}